package com.sc.VenusQueryBeta.model.login;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.login.LoginApi;
import com.sc.VenusQueryBeta.contract.login.ForgotNextContract;
import com.sc.VenusQueryBeta.model.bean.login.ChangePwdBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/12.
 */

public class ForgotNextModel extends BaseModel implements ForgotNextContract.IForgotNextModel {
    @Override
    public Observable<ChangePwdBean> forgotpwd(String id, String newPassword) {
        return RetrofitCreateHelper.createApi(LoginApi.class, Host.HostVGSestMessageserver).ChnagePwd(id, newPassword).compose(RxHelper.<ChangePwdBean>rxSchedulerHelper());
    }

    public static ForgotNextModel newInstance() {
        return new ForgotNextModel();
    }
}
